import request from '@/utils/request'
export default {
  login(data) {
    return request({
      url: '/sys/login',
      method: 'POST',
      data
    })
  },
  getUserInfo() {
    return request({
      url: '/sys/profile'
    })
  },
  updatePassword(data) {
    return request({
      url: '/sys/user/updatePass',
      method: 'PUT',
      data
    })
  }
}
